package com.zhangh.summer.admin.support.base;

/**
 * @description: TODO
 * @author: zhanghui  zhanghlucky@163.com
 * @create: 2021-06-23 23:56
 **/
public class ResponseFactory {

    public static JsonResponse response(){
        return new JsonResponse();
    }
    public static JsonResponse response(boolean success){
        return new JsonResponse(success);
    }
    public static JsonResponse response(boolean success, String msg){
        return new JsonResponse(success,msg);
    }
    public static JsonResponse response(boolean success, int code, String msg){
        return new JsonResponse(success,code,msg);
    }
}
